package com.weic.test01.vo;

import org.springframework.beans.factory.FactoryBean;

public class BookFactory implements FactoryBean {
    @Override
    public Object getObject() throws Exception {
        Book book  = new Book();
        book.setAuthor("weic");
        book.setName("AAA");
        return book;
    }

    @Override
    public Class<?> getObjectType() {
        return null;
    }

    @Override
    public boolean isSingleton() {
        return false;
    }
}
